setFont

abstract fun setFont(block: DesignBlock, fontFileUri: Uri, typeface: Typeface)

Sets the given font and typeface for the text block. Existing formatting is reset. Required scope: "text/character"

Parameters

block

the text block whose font should be changed.

fontFileUri

the Uri of the new font file.

typeface

the typeface of the new font.